package com.ndood.core.util;

/**
 * 代码生成器
 */
public class CodeGeneratorUtil {
	public static void main(String[] args) {
		/*Class<WmallStoreActivity> cls = WmallStoreActivity.class;  
		Method[] methods = cls.getMethods();  
		// 定义正则表达式，从方法中过滤出getter / setter 函数.  
		String ss = "set(\\w+)";  
		Pattern setM = Pattern.compile(ss);  
		List<String> list = new ArrayList<String>();
		for (Method method : methods) {
			Matcher matcher = setM.matcher(method.getName());
			if(matcher.find()){
				list.add("sa."+method.getName()+"();");
			}
		}
		Collections.sort(list, new Comparator<String>() {
			@Override
			public int compare(String o1, String o2) {
				return o1.compareTo(o2);
			}
		});
		for (String methodStr : list) {
			System.out.println(methodStr);
		}*/
	}
}
